projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3da4b81
)
wayland: Allow 0-size writes in selection/dnd
author
Carlos Garnacho
<carlosg@gnome.org>
Wed, 9 Mar 2016 16:28:29 +0000
(17:28 +0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Wed, 9 Mar 2016 17:39:15 +0000
(18:39 +0100)
It's not something we should be forbidding explicitly, definitely
no-op is not the best option.
gdk/wayland/gdkselection-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdkselection-wayland.c
b/gdk/wayland/gdkselection-wayland.c
index 8a9d1ee825301cf503aeac166ed26a3d32558df9..e1dd69b96a91268406cbb34c2440865ce7b9d75f 100644
(file)
--- a/
gdk/wayland/gdkselection-wayland.c
+++ b/
gdk/wayland/gdkselection-wayland.c
@@
-667,8
+667,7
@@
gdk_wayland_selection_check_write (GdkWaylandSelection *selection)
{
AsyncWriteData *write_data;
- if (selection->stored_selection.fd < 0 ||
- selection->stored_selection.data_len == 0)
+ if (selection->stored_selection.fd < 0)
return FALSE;
/* Cancel any previous ongoing async write */